home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 76 / MF_UK_76_1.iso / Education Feature / MicroWorlds 2.03 Try Me / MicroWorlds 2.03 Try Me.rsrc / TEXT_730_stop.txt < prev    next >
Encoding:
Text File  |  1998-05-08  |  446 b   |  27 lines

  1. stop
  2.  
  3. Stops the procedure that is running. Stop can only be used in a procedure. See stopall and stopme.
  4.  
  5. Example: 
  6.  
  7. The second line of this procedure is called a stop rule.
  8.  
  9. to countup :number 
  10. if :number > 100 [stop] 
  11. print :number
  12. countup :number + 5 
  13. end
  14.  
  15. Try: 
  16.  
  17. text1,
  18. countup 0
  19.  
  20. Other examples of stop rules.
  21.  
  22. if colorunder = 15 [stop]
  23. t1, if (distance "t2) > 100 [stop]
  24. if slider1 < 1 [stop]
  25. if empty? answer [stop]
  26. if empty? text1 [stop]
  27.